<div ng-controller="userRoleController">
<!-- 修改 BEGIN -->
<!--<div ng-controller="userRoleDetailsController">-->
   <div class="right-product right-full operation animate-time" ng-class="{ true: 'right-full', false: 'right-off' }[isActive]"> 
        <div class="center-back right-back">
 				<ul class="breadcrumb">
					<li>
	                    <a ui-sref="home">
	                        <img class="breadcrumb-right-img-home" height="20px" src="../images/right-product/home.png">首页
	                    </a>
	                </li>
	                <li>
	                    <img class="breadcrumb-right-img" src="../images/public/right4.png">
	                </li>
	                <li>
	                    <a>角色管理</a>
	                </li>
	                <li>
	                    <img class="breadcrumb-right-img"src="../images/public/right4.png">
	                </li>
	                <li>
	                    <a >角色管理</a>
	                </li>
	                <li>
	                    <img class="breadcrumb-right-img"src="../images/public/right4.png">
	                </li>
	                <li>
	                    <a class="active">修改</a>
	                </li>
            	</ul>
				<div class="panel panel-default">
			        <div class="panel-heading game-border pull-left goods-panel-heading addblock" ui-sref="user.role">
			            <i class="glyphicon glyphicon-arrow-left" >返回列表</i>
			        </div>
                </div>
				<div class="container-fluid">
                    <div class="info-center">
                   	<div class="contain">
                	<form name="userRoleUpdate_form" novalidate>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 control-label text-right">角色名称:</label>
                            <div class="col-xs-12 col-sm-6">
                                <input type="text" 
                                	name="roleName" 
                                	ng-minlength="2" 
                                    ng-maxlength="20"  
                                    class="form-control"  
                                    autocomplete="off" 
                                    ng-model="roleupdatenew.roleName" 
                                    required/>
                                <label class="red required">*</label>
                            
                                <div class="error" ng-show="userRoleUpdate_form.roleGroupName.$dirty && userRoleUpdate_form.roleGroupName.$invalid">
    								<small class="error" ng-show="userRoleUpdate_form.roleGroupName.$error.required">请输入角色组名</small>
    								<small class="error" ng-show="userRoleUpdate_form.roleGroupName.$error.minlength ">角色组名长度在2-20之间</small>
    								<small class="error" ng-show="userRoleUpdate_form.roleGroupName.$error.maxlength">角色组名长度在2-20之间</small>
    		 					</div>
    		 				</div>	
                        </div>
                        <div class="form-group height-auto">
                            <label class="col-xs-12 col-sm-3 control-label text-right">角色组：</label>
                            <div class="col-xs-12 col-sm-6">
                                <select name="roleGroup" ng-model="roleupdatenew.roleGroupName" ng-options="o.id as o.roleGroupName for o in roleGroupList"  required>
                                	<option value="">请选择</option>
                                </select>
                                <div class="error" ng-show="userRoleUpdate_form.roleGroup.$dirty && userRoleUpdate_form.roleGroup.$invalid">
    								<small class="error" ng-show="userRoleUpdate_form.roleGroup.$error.required">请选择角色组名</small>
    		 					</div>
                            </div>
                        </div>
                        <div class="form-group height-auto">
                            <label class="col-xs-12 col-sm-3 control-label text-right">自动分配：</label>
                            <div class="col-xs-12 col-sm-6">
                                <select name="autoAssignment" ng-model="roleupdatenew.autoAssignment" ng-options="o.id as o.name for o in autoAssignmentList">
                                	<option value="">请选择</option>
                                	<div class="error" ng-show="userRoleUpdate_form.autoAssignment.$dirty && userRoleUpdate_form.autoAssignment.$invalid">
    									<small class="error" ng-show="userRoleUpdate_form.autoAssignment.$error.required">请选择自动分配</small>
    		 						</div>
                                </select>
                            </div>
                        </div>
                  		
                        <div class="form-group height-auto">
                            <label class="col-xs-12 col-sm-3 control-label text-right">描述：</label>
                            <div class="col-xs-12 col-sm-6">
                                <textarea rows="5" type="text" name="description" class="form-control" ng-model="roleupdatenew.description"/></textarea>
                            </div>
                        </div>
               	 	</form>
               	 	<div class="form-group height-auto">
                            <label class="col-xs-12 col-sm-3 control-label text-right"></label>
                            <div class="col-xs-12 col-sm-6">
                                <div class="modal-footer">
                    				<button type="button" class="btn btn-primary" ng-disabled="userRoleUpdate_form.$invalid" ng-click="confirmEdit($event)">修改</button>
            					</div>
                            </div>
                    </div>
               	</div> 	
            </div>
        </div>
	</div>  
<!--</div>	-->
<!-- 修改 END -->
</div>
